package routers

import (
	"github.com/gin-gonic/gin"
	"muziai-server/api"
	"muziai-server/middleware"
)

func SettingsRouter(r *gin.RouterGroup) {
	middleware := middleware.MiddlewareAuth{}
	app := api.ApiApp.SettingsApi
	r.GET("settings/:name", app.SettingInfoView)
	r.PUT("settings/:name", middleware.MiddlewareAdmin, app.SettingUpdateView)

}
